<!doctype html>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-touch-fullscreen" content="yes" />
  <meta name="format-detection" content="telephone=no"/>
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="msapplication-tap-highlight" content="no" />
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="author" content="中国追溯">
<meta name="copyright" content="中国追溯 Inc. All Rights Reserved">
  <title>门店信息</title>
  <link rel="stylesheet" type="text/css" href="../../css/base.css">
  <link rel="stylesheet" type="text/css" href="../../css/nctouch_dhome_index.css">
  <link rel="stylesheet" type="text/css" href="../../css/nctouch_dhome_nav.css">
  <style type="text/css">
    body{  background-color: #fff;}
    .index-shop-ul li{ padding:.5rem .5rem .5rem 0;border-bottom: 1px dotted #CCC; margin-left: .6rem; }
  </style>
  <script type="text/javascript">
var SiteUrl = "/shop";
var ApiUrl = "/mobile";
var WapSiteUrl = "/wap";
var pagesize = 10;
</script>
<script type="text/javascript" src="../../js/config.js"></script>
<script type="text/javascript" src="../../js/zepto.min.js"></script>
<script type="text/javascript" src="../../js/touch-0.2.14.min.js"></script>
<script type="text/javascript" src="../../js/template.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/iscroll.js"></script>
<script type="text/javascript" src="../../js/tmpl/dhome/uptop.js"></script>
<script type="text/javascript" src="../../js/tmpl/dhome/goods_list.js"></script>
<script type="text/javascript" src="../../js/tmpl/dhome/dhome_buy.js"></script>
</head>
<body>
<section>
  <div class="search-store">
    <div class="search-store-box"><i class="ss1 ss0"></i>
      <input type="search" style="max-width:90%;" class="ss-input" placeholder="搜索附近的商品和门店">
    </div>
  </div>
  <article class="main-search">
    <div class="zz qk" id="goods_list">
    </div>
    <div class="dp-more-shop" style="display: none;">
      <p><i class="bb"></i>没有更多商品啦<i class="bc"></i></p>
    </div>
  </article>
</section>
<div class="sc-box">
  <div class="sc-box-line"></div>
    <a cart_goods_show="1" onclick="show_cart(1)" href="javascript:void(0);" class="sx1 show"></a>
    <div id="chain_cart_total" class="sx2">
      <div class="sx3">购物车是空的</div>
    </div>
    <a id="chain_cart_buy" onclick="cart_buy()" class="sx4 dib" href="javascript:void(0);">去结算</a>
    <div id="chain_cart_content" class="minicart-content" style="display: none;transform: translateY(-100%);"> 
      <a cart_goods_show="2" onclick="show_cart(0)" href="javascript:void(0);" class="sx1 incart-con light show"></a> 
      <i class="a3m"></i>
      <div class="a3n"><span id="chain_cart_checked" onclick="show_cart_checked(0)" class="a4q a4r">全选</span>
        <p id="chain_cart_selected" class="a4t"></p>
        <a onclick="chain_del_cart(0)" href="javascript:void(0);" class="a3o">清空购物车</a></div>
      <div class="a3q" style="height: auto;">
        <div class="a41 single">
          <ul id="chain_cart_goods_list" class="minicart-goods-list single">
          </ul>
        </div>
      </div>
      <div style="height:49px;"></div>
    </div>
    <div id="chain_cart_mask" onclick="show_cart(0)" class="a3f" style="display: none;"></div>
</div>
<div class="nav-r-box bothvisible" style="bottom: 117px;">
  <div class="nav-r">
     <a class="fl" href="../../dhome.html">首页</a>
     <a class="yp" href="./category.html">分类</a>
     <a class="yr" href="../member/order_list.html?chain=1">订单</a>
     <a class="wd" href="../member/member.html">我的</a>
     <i class="wds"></i>
  </div>
</div>
<div class="fix-block-box"><a id="goTop" class="fix-block-btn"  href="javascript:void(0);" style="bottom: 23px;"><i></i></a></div>
<script type="text/html" id="chain_goods_tpl">
  <% var goods_list = datas.goods_list;%>
  <% if(goods_list.length >0){%>
  <ul class="index-shop-ul">
    <% for(i=0;i<goods_list.length;i++){%>
    <li> 
      <a class="links-goods a2" href="goods_detail.html?goods_id=<%=goods_list[i].goods_id%>&chain_id=<%=goods_list[i].chain_id%>">
        <span class="tt-span">
          <img src="<%=goods_list[i].goods_image%>" class="pic">
        </span>
        <dl>
          <dt><%=goods_list[i].goods_name%></dt>
          <dd class="aan">
            <strong class="line_pre">已售<%=goods_list[i].goods_salenum%>件</strong>
          </dd>
          <dd></dd>
          <dd class="a1g">
            <label><em>￥</em><%=goods_list[i].chain_price%></label>
          </dd>
        </dl>
      </a>
      <div class="Box check_number" chain_goods_id="<%=goods_list[i].goods_id%>" style="position: relative;">
        <span onclick="del_cart('<%=goods_list[i].goods_id%>')" class="reduce hide"></span>
        <label goods_num_id="<%=goods_list[i].goods_id%>" goods_stock="<%=goods_list[i].stock%>" class="hide">0</label>
        <span onclick="add_cart('<%=goods_list[i].goods_id%>')" class="add storeSearchCart"></span>
      </div>
    </li>
    <% } %>      
  </ul>
  <% }else{%>
  <div class="store-warp a2">
    — 没有找到任何商品信息 —
  </div>
  <% } %>
</script>
<script type="text/html" id="chain_cart_goods">
    <% for(i=0;i<goods_list.length;i++){%>
          <li chain_goods_id="<%=goods_list[i].goods_id%>" class="a43 <% if(goods_list[i].stock>0) { %>single<% } else { %>inval<% } %> ">
          <span chain_goods_checked="<%=goods_list[i].goods_id%>" <% if(goods_list[i].stock>0) { %>onclick="show_cart_checked(<%=goods_list[i].goods_id%>)"<% } %> class="a4q a44 <% if(goods_list[i].goods_selected>0) { %>checked<%}%>"></span>
          <a class="a47" href="goods_detail.html?goods_id=<%=goods_list[i].goods_id%>&chain_id=<%=goods_list[i].chain_id%>">
            <table class="a48">
              <tbody>
                <tr>
                  <td style=" width:62px; ">
                  <img src="<%=goods_list[i].goods_image_url%>" class="a49">
                  <% if(goods_list[i].stock<1) { %><i class="a50">无货</i><% } %> 
                  </td>
                  <td><div class="a4c"><%=goods_list[i].goods_name%></div>
                    <div class="a4l">
                      <div class="a45">￥<%=goods_list[i].chain_price%></div>
                    </div></td>
                </tr>
              </tbody>
            </table>
            </a>
            <% if(goods_list[i].stock>0) { %>
            <a onclick="del_cart('<%=goods_list[i].goods_id%>')" class="a4a"></a>
            <em goods_num_id="<%=goods_list[i].goods_id%>" goods_stock="<%=goods_list[i].stock%>" class="a4d"><%=goods_list[i].goods_num%></em>
            <a onclick="add_cart('<%=goods_list[i].goods_id%>')" class="a4b"></a>
            <% } else { %>
            <a onclick="chain_del_cart('<%=goods_list[i].goods_id%>')" class="a4a"></a>
            <em class="a4d">0</em>
            <a class="a4b"></a>
            <% } %> 
            </li>
    <% } %> 
</script>

</body>
</html>
